import { connect } from 'react-redux'
import ExChangeBeans from '../../../../views/My/MyUtils/Hypothecation/ExChangeBeans'

function mapStateToProps(state: any) {
    return {
        userInfo: state.user.userInfo,
        isAutoSelect: state.detail.isAutoSelect,
        userHypoDetail: state.detail.userHypoDetail,
    }
}

function mapDispatchToProps(dispatch: (obj: any) => void) {
    return {
        'SET_MYUTILS_HYPODETAIL': (data: any) => {
            dispatch({ type: 'SET_MYUTILS_HYPODETAIL', data })
        },
        'SET_MYUTILS_HYPOAUTOSELECT': (data: any) => {
            dispatch({ type: 'SET_MYUTILS_HYPOAUTOSELECT', data })
        },
    }
}

export default connect(mapStateToProps, mapDispatchToProps)(ExChangeBeans)